//
//  YZLtakeOkView.m
//  Car
//
//  Created by dllo on 15/11/2.
//  Copyright © 2015年 岳明. All rights reserved.
//

#pragma mark - **已经订阅的标签栏

#import "YZLtakeOkView.h"
#import "Macro.h"

@implementation YZLtakeOkView

- (instancetype)initWithFrame:(CGRect)frame {
    self = [super initWithFrame:frame];
    if (self) {
        UILabel *label = [[UILabel alloc] initWithFrame:CGRectMake(15, 0, kWidth / 2, self.frame.size.height)];
        [self addSubview:label];
        label.text = @"已经订阅的标签";
        
        self.packUpButton = [UIButton buttonWithType:UIButtonTypeSystem];
        [self addSubview:self.packUpButton];
        [self.packUpButton setTitle:@"收起" forState:UIControlStateNormal];
        self.packUpButton.frame = CGRectMake(kWidth - kWidth / 8, 0, kWidth / 8, 40);
        
        UIView *lineView = [[UIView alloc] initWithFrame:CGRectMake(0, self.frame.size.height, kWidth, 1)];
        lineView.backgroundColor = [UIColor colorWithWhite:0.9 alpha:1];
        [self addSubview:lineView];

    }
    return self;
}

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
